<template>
  <div class="product">
    <div  class="card">
      <a href=""><img src="/sy/xynrzs.jpg" alt=""></a>
      <div class="detail">
        <div>
        <h3>雪域牛乳芝士</h3>
        <div>
          经典之作 热销多年
        </div>
      </div>
      <p>¥218/1磅</p>
      </div>
    </div> 
    <div class="card">
      <a href=""><img src="/sy/nfmm.jpg" alt=""></a>
        <div class="detail">
      <div>
        <h3>奶芙莓莓</h3>
        <div>
          果香满溢 「莓」开眼笑
        </div>
      </div>
      <p>¥336/2磅</p>
    </div>
   </div>
   <div class="card">
      <a href=""><img src="/sy/fjtt.jpg" alt=""></a>
      <div class="detail">
      <div>
        <h3>星云知秋</h3>
        <div>
          缤纷四味，一次尝遍
        </div>
      </div>
      <p>¥218/1磅</p>
    </div>
  </div> 

  <div class="card">
      <a href=""><img src="/sy/ydmm.jpg" alt=""></a>
    <div class="detail">
      <div>
        <h3>野趣宝藏</h3>
        <h4><span> 野营季 限时8折</span></h4>
        <div>
          高颜值野餐甜品盒，多款美味，一次打卡
        </div>
      </div>
      <p>¥336/2磅</p>
    </div>
    </div>
     <div class="card">
      <img src="/sy/ydmm.jpg" alt="">
    <div class="detail">
      <div>
        <h3>野趣宝藏</h3>
        <h4><span> 野营季 限时8折</span></h4>
        <div>
          高颜值野餐甜品盒，多款美味，一次打卡
        </div>
      </div>
      <p>¥336/2磅</p>
    </div>
    </div> 
    
  </div>
</template>

<script>
  export default {
    
  }
</script>

<style lang="scss" scoped>
.product{
  // width: 345px;
  // padding: 15px;
  // display: flex;
  // flex-wrap: wrap;
  // justify-content: space-between;
    width: 85vw;
  margin: 0 auto;
  // padding: 0 2vw;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 3vh;
}
.card{
  // width: 163px;
  // height: 245px;
  width: 40vw;
  height: 30vh;
}
.card img{
  width: 100%;
  height: 163px;
}

.product .card .detail{
  height: 75px;
}
.product .card .detail div{
  width: 160px;
  height: 50px;
}
.product .card .detail div h3{
  height: 20px;
  color: #3e3e3e;
  font-size: 12px;
  padding: 2px 0;
  line-height: 20px;
}
.product .card .detail div h4{
  height: 14px;

}
.product .card .detail div h4 span{
  background-color: #cea461;
  font-size: 12px;
  margin: 1px 0 0 ;
  padding: 2px;
  font-size: 12px;

}
.product .card .detail div>div{
  color: #9c9c9c;
  margin: 2px 0 0;
  height: 12px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space:nowrap;
  
}
.product .card p{
  height: 21px;
  font-size: 14px;
   color:#cea461;
   margin: 0 2px 0 0;
   line-height: 21px;
}












</style>